package com.zgm.ch06.aop.aspectJ.advice.after._2_5_2;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class AftefAspect {

	@AfterReturning("execution(* com.zgm.ch06.aop.services.*.*(..))")
	public void auditCall() {
		
		System.out.println("后置通知执行了");
	}
	
	@AfterReturning("execution(* com.zgm.ch06.aop.services.*.*(..))")
	public void auditCall(JoinPoint jp) {
		
		System.out.println("后置通知执行了: " + jp);
	}
}
